#include "xfb_vector.h"

#include <assert.h>
#include <stddef.h>
#include <stdio.h>

typedef struct student {
  int id;
} student_t;

int main()
{
  xf_vector_t v;
  xf_vector_init(&v);

  student_t stu0;
  stu0.id = 2;

  student_t stu1;
  stu1.id = 3;

  xf_vector_obj_push(&v, student_t, &stu0);
  xf_vector_obj_push(&v, student_t, &stu1);

  printf("%lu", xf_vector_obj_size(&v, student_t));

  student_t unuse;
  size_t ret = xf_vector_obj_pop(&v, student_t, &unuse);
  assert(ret != 0);

  printf("\n ret : %lu, unuse : %d\n", ret, unuse.id);
  printf("%lu", xf_vector_obj_size(&v, student_t));
}
